import request from '@/utils/request'

// 查询实时汇报列表
export function listRealReport(query) {
  return request({
    url: '/module/realReport/list',
    method: 'get',
    params: query
  })
}

// 查询实时汇报详细
export function getRealReport(id) {
  return request({
    url: '/module/realReport/' + id,
    method: 'get'
  })
}

// 新增实时汇报
export function addRealReport(data) {
  return request({
    url: '/module/realReport',
    method: 'post',
    data: data
  })
}

// 修改实时汇报
export function updateRealReport(data) {
  return request({
    url: '/module/realReport',
    method: 'put',
    data: data
  })
}

// 删除实时汇报
export function delRealReport(id) {
  return request({
    url: '/module/realReport/' + id,
    method: 'delete'
  })
}
